import Vue from 'vue'
import VueRouter from 'vue-router'
import Index from '../views/Index.vue'

Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        name: 'Home',
        component: Index
    },
    {
        path: '/car-manage',
        name: 'CarManage',
        component: () => import('@/views/CarManage')
    },
    {
        path: '/transfer-manage',
        name: 'TransferManage',
        component: () => import('@/views/TransferManage')
    },
    {
        path: '/car-tran-manage',
        name: 'CarTranManage',
        component: () => import('@/views/CarTranManage')
    },
    {
        path: '/toilet-manage',
        name: 'ToiletManage',
        component: () => import('@/views/ToiletManage')
    },
    {
        path: '/toilet-manage2',
        name: 'ToiletManage2',
        component: () => import('@/views/ToiletManage2')
    },
    {
        path: '/renewable-manage',
        name: 'RenewableManage',
        component: () => import('@/views/RenewableManage')
    },
    {
        path: '/staff-manage',
        name: 'StaffManage',
        component: () => import('@/views/StaffManage')
    },
    {
        path: '/project-manage1',
        name: 'ProjectManage1',
        component: () => import('@/views/ProjectManage1')
    },
    {
        path: '/project-manage2',
        name: 'ProjectManage2',
        component: () => import('@/views/ProjectManage2')
    }
]

const router = new VueRouter({
    // mode: 'history',
    base: process.env.BASE_URL,
    routes
})

export default router
